package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-17 15:35
 */
public class Test04 {
    public static void main(String[] args) {
//        int a=1;
//        int b=2;
//        a=b;
//        a=a+1;
//        System.out.println(a);
//        System.out.println(b);

        int[] c = new int[]{1, 2, 3, 4, 5};
        int[] d = new int[]{11, 12, 13, 14, 15};
//        c=d;
//        for(int i=0;i<c.length;i++){
//            c[i]=c[i]+1;
//        }
        System.out.println("操作前");
        System.out.println("c数组元素");
        for (int i = 0; i < c.length; i++) {
            System.out.print(c[i] + "\t");
        }
        System.out.println();
        System.out.println("d数组元素");
        for (int i = 0; i < d.length; i++) {
            System.out.print(d[i] + "\t");
        }
        System.out.println();

        c = d;
        for (int i = 0; i < c.length; i++) {
            c[i] = c[i] + 1;
        }

        System.out.println("操作后");
        System.out.println("c数组元素");
        for (int i = 0; i < c.length; i++) {
            System.out.print(c[i] + "\t");
        }
        System.out.println();
        System.out.println("d数组元素");
        for (int i = 0; i < d.length; i++) {
            System.out.print(d[i] + "\t");
        }
    }
}
